package org.wangp.gateway.oa.service;

import com.fasterxml.jackson.databind.ObjectMapper;
import lombok.SneakyThrows;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.CacheManager;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.security.oauth2.provider.ClientDetails;
import org.springframework.security.oauth2.provider.ClientDetailsService;
import org.springframework.security.oauth2.provider.ClientRegistrationException;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author wangpeng (๑•ᴗ•๑)
 * @date 2021/10/20 14:41
 */
@Service
public class ClientDetailService implements ClientDetailsService {

	@Override
	@SneakyThrows
	@Cacheable(cacheNames = "loadClientByClientId", key = "#clientId")
	public ClientDetails loadClientByClientId(final String clientId) throws ClientRegistrationException {
		return null;
	}
}
